<?xml version="1.0" encoding="UTF-8"?>
<Listings xmlns="http://rets.org/xsd/Syndication/2012-03" xmlns:commons="http://rets.org/xsd/RETSCommons" xmlns:schemaLocation="http://rets.org/xsd/Syndication/2012-03/Syndication.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" listingsKey="2012-03-06T22:14:47" version="0.96" versionTimestamp="2012-02-07T03:00:00Z" xml:lang="en-us">
<%- @listings.each do |listing| -%>
	<Listing>
<%- unless listing.address.blank? -%>
		<Address>
			<commons:preference-order><%= listing.address.preference_order %></commons:preference-order>
			<commons:address-preference-order><%= listing.address.address_preference_order %></commons:address-preference-order>
			<commons:FullStreetAddress><%= listing.address.full_street_address %></commons:FullStreetAddress>
			<commons:UnitNumber><%= listing.address.unit_number %></commons:UnitNumber>
			<commons:City><%= listing.address.city %></commons:City>
			<commons:StateOrProvince><%= listing.address.state_or_province %></commons:StateOrProvince>
			<commons:PostalCode><%= listing.address.postal_code %></commons:PostalCode>
			<commons:Country><%= listing.address.country %></commons:Country>
		</Address>
<%- end -%>
		<ListPrice commons:isgSecurityClass="Public"><%= listing.list_price %></ListPrice>
		<ListPriceLow commons:isgSecurityClass="Public"><%= listing.list_price_low %></ListPriceLow>
<%- # TODO: AlternatePrices -%>
		<ListingURL>http://www.somemls.com/lisings/1234567890</ListingURL>
		<ProviderName><%= listing.listing_provider.name %></ProviderName>
		<ProviderURL><%= listing.listing_provider.url %></ProviderURL>
		<ProviderCategory><%= listing.listing_provider.source_provider_category.name %></ProviderCategory>
		<LeadRoutingEmail><%= listing.lead_routing_email %></LeadRoutingEmail>
		<Bedrooms><%= listing.bedrooms %></Bedrooms>
		<Bathrooms><%= listing.bathrooms %></Bathrooms>
<%- # TODO: PropertyType otherDescription="Ranch" -%>
<%- # TODO: PropertySubType otherDescription="Ranch" -%>
		<PropertyType otherDescription=""><%= listing.property_type.name %></PropertyType>
		<PropertySubType otherDescription=""><%= listing.property_sub_type.name %></PropertySubType>
		<ListingKey><%= listing.listing_key %></ListingKey>
		<ListingCategory><%= listing.listing_category.name %></ListingCategory>
		<ListingStatus><%= listing.listing_status.name %></ListingStatus>
		<MarketingInformation>
			<commons:PermitAddressOnInternet commons:isgSecurityClass="Public"><%= listing.permit_address_on_internet %></commons:PermitAddressOnInternet>
			<commons:VOWAddressDisplay commons:isgSecurityClass="Public"><%= listing.vow_address_display %></commons:VOWAddressDisplay>
			<commons:VOWAutomatedValuationDisplay commons:isgSecurityClass="Public"><%= listing.vow_automated_valuation_display %></commons:VOWAutomatedValuationDisplay>
			<commons:VOWConsumerComment commons:isgSecurityClass="Public"><%= listing.vow_consumer_comment %></commons:VOWConsumerComment>
		</MarketingInformation>
<%- unless listing.photos.blank? -%>
		<Photos>
<%- listing.photos.each do |photo| -%>
			<Photo>
				<MediaModificationTimestamp commons:isgSecurityClass="Public"><%= photo.media_modification_timestamp %></MediaModificationTimestamp>
				<MediaURL><%= photo.media_url %></MediaURL>
				<MediaCaption><%= photo.media_caption %></MediaCaption>
				<MediaDescription><%= photo.media_description %></MediaDescription>
			</Photo>
<%- end -%>
		</Photos>
<%- end -%>
		<DiscloseAddress><%= listing.disclose_address %></DiscloseAddress>
		<ShortSale><%= listing.short_sale %></ShortSale>
		<ListingDescription><%= listing.listing_description %></ListingDescription>
		<MlsId><%= listing.listing_service.identifier %></MlsId>
		<MlsName><%= listing.listing_service.name %></MlsName>
		<MlsNumber><%= listing.listing_service_identifier %></MlsNumber>
		<LivingArea><%= listing.living_area %></LivingArea>
		<LotSize><%= listing.lot_size %></LotSize>
		<YearBuilt><%= listing.year_built %></YearBuilt>
		<ListingDate><%= listing.listing_date %></ListingDate>
		<ListingTitle><%= listing.listing_title %></ListingTitle>
		<FullBathrooms><%= listing.full_bathrooms unless listing.full_bathrooms.zero? %></FullBathrooms>
		<ThreeQuarterBathrooms><%= listing.three_quarter_bathrooms unless listing.three_quarter_bathrooms.zero? %></ThreeQuarterBathrooms>
		<HalfBathrooms><%= listing.half_bathrooms unless listing.half_bathrooms.zero? %></HalfBathrooms>
		<OneQuarterBathrooms><%= listing.one_quarter_bathrooms unless listing.one_quarter_bathrooms.zero? %></OneQuarterBathrooms>
		<ForeclosureStatus>REO - Bank Owned</ForeclosureStatus>
		<ListingParticipants>
			<Participant>
				<ParticipantKey>3yd-A2SELL-12345</ParticipantKey>
				<ParticipantId>12345</ParticipantId>
				<FirstName>John</FirstName>
				<LastName>Doe</LastName>
				<Role>Listing</Role>
				<PrimaryContactPhone>555555lead</PrimaryContactPhone>
				<OfficePhone>555555555</OfficePhone>
				<Email>l.0.null.null.2@leads.listhub.net</Email>
				<Fax>555-555-5555</Fax>
				<WebsiteURL>http://www.somemls.com/agents/12345</WebsiteURL>
			</Participant>
		</ListingParticipants>
		<VirtualTours>
			<VirtualTour>
				<MediaModificationTimestamp commons:isgSecurityClass="Public">2012-03-04T17:14:47-05:00</MediaModificationTimestamp>
				<MediaURL>http://virtualtour.com/listing/10923921</MediaURL>
				<MediaCaption>my virtual tour</MediaCaption>
				<MediaDescription>come see this property</MediaDescription>
			</VirtualTour>
		</VirtualTours>
		<Videos>
			<Video>
				<MediaModificationTimestamp commons:isgSecurityClass="Public">2012-03-04T17:14:47-05:00</MediaModificationTimestamp>
				<MediaURL>http://videos.listhub.com/listing/u93422/1</MediaURL>
				<MediaCaption>Awesome View</MediaCaption>
				<MediaDescription>This property overlooks downtown Morgantown</MediaDescription>
			</Video>
		</Videos>
		<Offices>
			<Office>
				<OfficeKey>3yd-A2SELL-OC1</OfficeKey>
				<OfficeId>OC1</OfficeId>
				<Level>???</Level>
				<OfficeCode>
					<OfficeCodeId>OC1</OfficeCodeId>
				</OfficeCode>
				<Name>Preview Listing Office</Name>
				<CorporateName>Preview Listing Office</CorporateName>
				<BrokerId>br0ker1d</BrokerId>
				<PhoneNumber>555-555-555</PhoneNumber>
				<Address>
					<commons:preference-order>1</commons:preference-order>
					<commons:address-preference-order>1</commons:address-preference-order>
					<commons:FullStreetAddress>2245 Don Knotts Blvd.</commons:FullStreetAddress>
					<commons:UnitNumber>2</commons:UnitNumber>
					<commons:City>Morgantown</commons:City>
					<commons:StateOrProvince>WV</commons:StateOrProvince>
					<commons:PostalCode>26501</commons:PostalCode>
					<commons:Country>USA</commons:Country>
				</Address>
				<Website>http://www.listoffice.com</Website>
			</Office>
		</Offices>
		<Brokerage>
			<Name>John Doe</Name>
			<Phone>555-555-lead</Phone>
			<Email>l.0.null.null.0@leads.listhub.net</Email>
			<WebsiteURL>http://johndoebrokerage.com/</WebsiteURL>
			<LogoURL>http://johndoebrokerage.com/logo.png</LogoURL>
			<Address>
				<commons:preference-order>1</commons:preference-order>
				<commons:address-preference-order>1</commons:address-preference-order>
				<commons:FullStreetAddress>2245 Don Knotts Blvd.</commons:FullStreetAddress>
				<commons:UnitNumber>2</commons:UnitNumber>
				<commons:City>Morgantown</commons:City>
				<commons:StateOrProvince>WV</commons:StateOrProvince>
				<commons:PostalCode>26501</commons:PostalCode>
				<commons:Country>true</commons:Country>
			</Address>
		</Brokerage>
		<Franchise>
			<Name>Advanced</Name>
    </Franchise>  
    <Builder>
			<Name>Building Builders</Name>
			<Phone>999-999-9998</Phone>
			<Fax>999-999-9999</Fax>
			<Email>email@building.com</Email>
			<WebsiteURL>http://www.buildingbuilders.com</WebsiteURL>
			<Address>
				<commons:preference-order>1</commons:preference-order>
				<commons:address-preference-order>1</commons:address-preference-order>
				<commons:FullStreetAddress>2245 Don Knotts Blvd.</commons:FullStreetAddress>
				<commons:City>Morgantown</commons:City>
				<commons:StateOrProvince>WV</commons:StateOrProvince>
				<commons:PostalCode>26501</commons:PostalCode>
			</Address>
		</Builder>
		<Location>
			<Latitude>39.231</Latitude>
			<Longitude>-89.9383</Longitude>
			<Elevation>1000ft</Elevation>
			<Directions>Down the road, take a left, ford the stream, left at roundabout</Directions>
			<GeocodeOptions>WGS84</GeocodeOptions>
			<County>Monongalia</County>
			<ParcelId>12321</ParcelId>
			<Community>
				<commons:Subdivision commons:isgSecurityClass="Public">Cheat Crossings</commons:Subdivision>
				<commons:Schools>
					<commons:School>
						<commons:Name>Valley View</commons:Name>
						<commons:SchoolCategory>Elementary</commons:SchoolCategory>
						<commons:District commons:isgSecurityClass="Public">Monongalia</commons:District>
						<commons:Description>true</commons:Description>
					</commons:School>
					<commons:School>
						<commons:Name>MHS</commons:Name>
						<commons:SchoolCategory>High</commons:SchoolCategory>
						<commons:District commons:isgSecurityClass="Public">Monongalia</commons:District>
						<commons:Description>true</commons:Description>
					</commons:School>
					<commons:School>
						<commons:Name>Morgantown Jr High School</commons:Name>
						<commons:SchoolCategory>JuniorHigh</commons:SchoolCategory>
						<commons:District commons:isgSecurityClass="Public">Monongalia</commons:District>
						<commons:Description>true</commons:Description>
					</commons:School>
					<commons:School>
						<commons:Name>South</commons:Name>
						<commons:SchoolCategory>Middle</commons:SchoolCategory>
						<commons:District commons:isgSecurityClass="Public">Monongalia</commons:District>
						<commons:Description>true</commons:Description>
					</commons:School>
				</commons:Schools>
			</Community>
			<Neighborhoods>
				<Neighborhood>
					<Name>Downtown</Name>
					<Description>Fabulous Downtown Morgantown</Description>
				</Neighborhood>
				<Neighborhood>
					<Name>Industrial</Name>
					<Description>Business opportunities abound</Description>
				</Neighborhood>
			</Neighborhoods>
		</Location>
		<OpenHouses>
			<OpenHouse>
				<Date>2012-03-16</Date>
				<StartTime>5:14 PM</StartTime>
				<EndTime>9:14 PM</EndTime>
				<Description>Come out and see this lovely property!</Description>
			</OpenHouse>
		</OpenHouses>
		<Taxes>
			<Tax>
				<Year>2011</Year>
				<Amount>3400.0</Amount>
				<TaxDescription>tax description1</TaxDescription>
			</Tax>
			<Tax>
				<Year>2010</Year>
				<Amount>3300.0</Amount>
				<TaxDescription>tax description2</TaxDescription>
			</Tax>
		</Taxes>
		<Expenses>
			<Expense>
				<commons:ExpenseCategory>Trash Fee</commons:ExpenseCategory>
				<commons:ExpenseValue commons:currencyPeriod="Quarterly" commons:isgSecurityClass="Public">2000.0</commons:ExpenseValue>
			</Expense>
			<Expense>
				<commons:ExpenseCategory>Yard Care Fee</commons:ExpenseCategory>
				<commons:ExpenseValue commons:currencyPeriod="Annually" commons:isgSecurityClass="Public">2000.0</commons:ExpenseValue>
			</Expense>
			<Expense>
				<commons:ExpenseCategory>Home Owner Assessments Fee</commons:ExpenseCategory>
				<commons:ExpenseValue commons:currencyPeriod="Annually" commons:isgSecurityClass="Public">1100.0</commons:ExpenseValue>
			</Expense>
		</Expenses>
		<DetailedCharacteristics>
			<Appliances>
				<Appliance>Dishwasher</Appliance>
				<Appliance>Refrigerator</Appliance>
			</Appliances>
			<ArchitectureStyle otherDescription="Ranch">Cape Cod</ArchitectureStyle>
			<HasAttic>true</HasAttic>
			<HasBarbecueArea>true</HasBarbecueArea>
			<HasBasement>true</HasBasement>
			<BuildingUnitCount>1</BuildingUnitCount>
			<IsCableReady>true</IsCableReady>
			<HasCeilingFan>true</HasCeilingFan>
			<CondoFloorNum>1</CondoFloorNum>
			<CoolingSystems>
				<CoolingSystem>Central A/C</CoolingSystem>
			</CoolingSystems>
			<HasDeck>true</HasDeck>
			<HasDisabledAccess>true</HasDisabledAccess>
			<HasDock>true</HasDock>
			<HasDoorman>true</HasDoorman>
			<HasDoublePaneWindows>true</HasDoublePaneWindows>
			<HasElevator>true</HasElevator>
			<ExteriorTypes>
				<ExteriorType>Brick</ExteriorType>
				<ExteriorType>Vinyl Siding</ExteriorType>
			</ExteriorTypes>
			<HasFireplace>true</HasFireplace>
			<FloorCoverings>
				<FloorCovering>Carpet</FloorCovering>
				<FloorCovering>Wood</FloorCovering>
			</FloorCoverings>
			<HasGarden>true</HasGarden>
			<HasGatedEntry>true</HasGatedEntry>
			<HasGreenhouse>true</HasGreenhouse>
			<HeatingFuels>
				<HeatingFuel>Natural Gas</HeatingFuel>
			</HeatingFuels>
			<HeatingSystems>
				<HeatingSystem>Forced Air</HeatingSystem>
			</HeatingSystems>
			<HasHotTubSpa>true</HasHotTubSpa>
			<Intercom>true</Intercom>
			<HasJettedBathTub>true</HasJettedBathTub>
			<HasLawn>true</HasLawn>
			<LegalDescription>Legal description</LegalDescription>
			<HasMotherInLaw>true</HasMotherInLaw>
			<IsNewConstruction>false</IsNewConstruction>
			<NumFloors>2.0</NumFloors>
			<NumParkingSpaces>23</NumParkingSpaces>
			<HasPatio>true</HasPatio>
			<HasPond>true</HasPond>
			<HasPool>true</HasPool>
			<HasPorch>true</HasPorch>
			<RoofTypes>
				<RoofType>Composition Shingle</RoofType>
			</RoofTypes>
			<RoomCount>28</RoomCount>
			<Rooms>
				<Room>Bedroom</Room>
				<Room>Bedroom</Room>
				<Room>Bedroom</Room>
				<Room>Full Bath</Room>
				<Room>Full Bath</Room>
				<Room>Half Bath</Room>
				<Room>Half Bath</Room>
				<Room>Theatre</Room>
			</Rooms>
			<HasRVParking>true</HasRVParking>
			<HasSauna>true</HasSauna>
			<HasSecuritySystem>true</HasSecuritySystem>
			<HasSkylight>true</HasSkylight>
			<HasSportsCourt>true</HasSportsCourt>
			<HasSprinklerSystem>true</HasSprinklerSystem>
			<HasVaultedCeiling>true</HasVaultedCeiling>
			<ViewTypes>
				<ViewType>Mountain</ViewType>
			</ViewTypes>
			<IsWaterfront>true</IsWaterfront>
			<HasWetBar>true</HasWetBar>
			<IsWired>true</IsWired>
			<YearUpdated>2008</YearUpdated>
		</DetailedCharacteristics>
		<ModificationTimestamp commons:isgSecurityClass="Public">2012-03-06T17:14:47-05:00</ModificationTimestamp>
	</Listing>
<%- end -%>
</Listings>